package com.gitee.xmhzzz.component.tcp.server.context;

import com.gitee.xmhzzz.component.model.req.Req;
import com.gitee.xmhzzz.component.model.resp.Resp;
import com.gitee.xmhzzz.component.tcp.server.config.NettyServerProperties;
import io.netty.channel.ChannelInboundHandlerAdapter;

/**
 * @InterfaceName NettyServerContext
 * @Description
 * @Author wzq
 * @Date 2024/3/5 13:59
 * @Version 1.0
 */
public interface NettyServerContext extends NettyServerProperties {

    TCPNettyServerContext create(ChannelInboundHandlerAdapter adapter);

    void connect() throws Exception;

    void stop();


}
